onEvent('recipes', event => {
    event.custom({
        "type": "tconstruct:casting_table", // 类型:铸造台
        "cast": {
            "item": 'emendatusenigmatica:invar_plate' // 槽中物品
        },
        "cast_consumed": true, // 是否消耗物品
        "fluid": {
            "name": 'thermal:redstone', // 液体注册名
            "amount": 120 // 耗量，单位:mB
        },
        "result": 'projectred-core:plate', // 输出物品
        "cooling_time": 20 // 浇铸时间
    });

    const star_map = [
        "evorsio",
        "aevitas",
        "vicio",
        "fornax",
        "octans",
        "bootes",
        "mineralis",
        "horologium"
    ]
    const item_list = [
        "paper_a_0",
        "paper_a_1",
        "paper_a_2",
        "paper_a_3",
        "paper_a_4",
        "paper_a_5",
        "paper_a_6",
        "paper_a_7",
    ]

    for (let i = 0; i < item_list.length; i++) {
        event.shapeless(Item.of("astralsorcery:attuned_celestial_crystal",`{astralsorcery:{crystalProperties:{attributes:[
            {property:\"astralsorcery:size\",pLevel:-10,discovered:1b}]},constellationName:\"astralsorcery:${star_map[i]}\"}}`), 
        [`kubejs:paper_a_${i}`,"astralsorcery:celestial_crystal"]);
    }


    /*
    Item.of('astralsorcery:attuned_rock_crystal', '
    {astralsorcery:{crystalProperties:constellationName:"astralsorcery:aevitas"}}')
    */
});